﻿using System;
using Terraria.Localization;

namespace Terraria.ModLoader.UI
{
	// Token: 0x02000296 RID: 662
	public static class UpdateFilterModesExtensions
	{
		// Token: 0x06001AB7 RID: 6839 RVA: 0x0001321E File Offset: 0x0001141E
		public static string ToFriendlyString(this UpdateFilter updateFilterMode)
		{
			switch (updateFilterMode)
			{
			case UpdateFilter.All:
				return Language.GetTextValue("tModLoader.MBShowAllMods");
			case UpdateFilter.Available:
				return Language.GetTextValue("tModLoader.MBShowNotInstalledUpdates");
			case UpdateFilter.UpdateOnly:
				return Language.GetTextValue("tModLoader.MBShowUpdates");
			default:
				return "Unknown Sort";
			}
		}
	}
}
